@extends('layouts.master')

@section('title')
    订单——钢链网后台管理系统
@stop

@section('app_css')
    <link rel="stylesheet" href="/resource/css/bootstrap.min.css">
    <link rel="stylesheet" href="/resource/css/font-awesome.min.css">
    <link rel="stylesheet" href="/resource/css/animate.min.css">
    <link rel="stylesheet" href="/resource/css/custom.css">
    <link rel="stylesheet" href="/resource/css/green.css">
    <link rel="stylesheet" href="/resource/css/fileinput.min.css">
    @stop

@section('app_js')
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="/resource/js/jquery.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/custom.js"></script>
    <!-- icheck -->
    <script src="/resource/js/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="/resource/js/jquery.dataTables.js"></script>
    <script src="/resource/js/J_main.js"></script>
    <!-- 添加图片 -->
    <script src="/resource/js/fileinput.min.js"></script>
    <script src="/resource/js/fileinput_locale_zh.js"></script>
    <!-- 编辑器 -->
    <script src="/resource/js/umeditor.config.js" charset="utf-8"></script>
    <script src="/resource/js/umeditor.min.js" charset="utf-8"></script>
    <script src="/resource/js/lang/zh-cn/zh-cn.js"></script>
    {{--联动--}}
    <script src="/resource/js/province_city.js"></script>
    <script>
        var um = UM.getEditor('editor');
        //联动
        region_init("pro","city","coun");
        var hid = $('#hid').val();
        var arr = [];
        arr = hid.split('-');
        region_init("pro","city","coun",arr[0],arr[1],arr[2]);
    </script>
    <link rel="stylesheet" href="/resource/js/themes/default/css/umeditor.css">
@stop

@section('content')
    <body class="nav-md">

    <div class="container body">


        <div class="main_container">

            @include('common.admin_menu')

                    <!-- top navigation -->
            @include('common.admin_nav')
                    <!-- /top navigation -->


            <!-- page content -->
            <div class="right_col" role="main">

                <div class="">

                    <div class="row cont">

                        <div class="col-md-6 col-sm-12 col-xs-12">
                            <div class="x_panel">
                                <div class="x_title">
                                    <h2>订单 <small>订单</small></h2>
                                    <div class="clearfix"></div>
                                </div>

                                <div class="x_content">
                                    <br />
                                        {{ Form::open(['url'=>'admin/order_details', 'files' => true, 'method' => 'post']) }}
                                        <div class="form-group">
                                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="first-name">买家
                                            </label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div type="text" value="" id="first-name" required="required" class="form-control col-md-7 col-xs-12" name="user" >
                                                    {{$order->user_name}}
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="first-name">商品名称
                                            </label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div type="text" value="" id="first-name" required="required" class="form-control col-md-7 col-xs-12" name="product_name">
                                                    {{$order->brand_name}}
                                                </div>
                                                </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">数量
                                            </label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div type="text" value="" id="last-name" name="phone" required="required" class="form-control col-md-7 col-xs-12" >
                                                    {{$order->number}}
                                                </div>
                                            </div>
                                        </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">订单号
                                        </label>
                                        <div class="col-md-10 col-sm-10 col-xs-12">
                                            <div type="text" value="" id="last-name" name="order_sn" required="required" class="form-control col-md-7 col-xs-12" >
                                                {{$order->order_sn}} </div>
                                        </div>
                                    </div>
                                        <div class="form-group">
                                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">支付方式
                                            </label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <select name="pro" class="form-control col-md-7 col-xs-12" disabled >
                                                    <option value="0" @if($order->payment_id ==0) selected="selected" @endif>京东支付</option>
                                                    <option value="1" @if($order->payment_id ==1) selected="selected" @endif>现金支付</option>
                                                    <option value="2" @if($order->payment_id ==2) selected="selected" @endif>银行转账</option>
                                                    <option value="3" @if($order->payment_id ==3) selected="selected" @endif>银行承兑汇票</option>
                                                </select>
                                            </div>

                                        </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">订单金额
                                        </label>
                                        <div class="col-md-10 col-sm-10 col-xs-12">
                                            <div type="text" value="" id="last-name" name="amount" required="required" class="form-control col-md-7 col-xs-12" >
                                                {{$order->amount}}
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">订单流水号
                                        </label>
                                        <div class="col-md-10 col-sm-10 col-xs-12">
                                            <div type="text" value="" id="last-name" name="trade_num" required="required" class="form-control col-md-7 col-xs-12" >
                                                {{$order->trade_num}}
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">下单时间
                                        </label>
                                        <div class="col-md-10 col-sm-10 col-xs-12">
                                            <div type="text" value="" id="last-name" name="order_time" required="required" class="form-control col-md-7 col-xs-12" >
                                                {{$order->order_time}}
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">订单状态
                                        </label>
                                        <div class="col-md-10 col-sm-10 col-xs-12">
                                            <select name="order_status" class="form-control col-md-7 col-xs-12"  >
                                                <option value="10" @if($order->order_status ==10) selected="selected" @endif>已下单(未锁货)</option>
                                                <option value="20" @if($order->order_status ==20) selected="selected" @endif>已锁货(未付款)</option>
                                                <option value="30" @if($order->order_status ==30) selected="selected" @endif>已支付(待提货)</option>
                                                <option value="40" @if($order->order_status ==40) selected="selected" @endif>已提货(代开票)</option>
                                                <option value="50" @if($order->order_status ==50) selected="selected" @endif>已开票(交易成功)</option>
                                                <option value="60" @if($order->order_status ==60) selected="selected" @endif>已取消(交易失败)</option>
                                                <option value="70" @if($order->order_status ==70) selected="selected" @endif>已删除</option>

                                            </select>
                                        </div>

                                    </div>

                                        <div class="form-group">
                                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">备注
                                            </label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <textarea name="message" class="form-control col-md-7 col-xs-12" disabled> {{$order->message}}</textarea>
                                            </div>
                                        </div>

                                        <input type="hidden" name="order_id" value="{{$order->order_id}}" >
                                        <div class="ln_solid"></div>
                                        <div class="form-group">
                                            <div class="col-md-10 col-sm-10 col-xs-12 col-md-offset-3">
                                                <button type="submit" class="btn btn-primary">取消</button>
                                                <button type="submit" class="btn btn-success">提交</button>
                                            </div>
                                        </div>

                                        {{ Form::close() }}
                                </div>
                            </div>
                        </div>

                        <br />
                        <br />
                        <br />

                    </div>
                </div>

                <!-- footer content -->

                <footer>
                    <div class="">
                        <p class="pull-right">Copyright 2016 ganglianw.com All rights reserved. |
                            <span class="lead"> <i class="fa fa-logo-footer"></i> 钢链网后台管理系统</span>
                        </p>
                    </div>
                    <div class="clearfix"></div>
                </footer>
                <!-- /footer content -->
            </div>
            <!-- /page content -->

        </div>
    </div>

    <div id="custom_notifications" class="custom-notifications dsp_none">
        <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">
        </ul>
        <div class="clearfix"></div>
        <div id="notif-group" class="tabbed_notifications"></div>
    </div>
    </body>
@stop